package org.goodprinciples.oracolo.dao.impl.memento;

import java.sql.Types;

/**
 *
 * @author Francesco Conte
 */
public enum ApplicationMemento implements Property {
    
    READ_VERSION("readVersion", "APP_VERSION", Types.BIGINT), //mapping di comodo
    
    VERSION("version", "APP_VERSION", Types.BIGINT),
    COMMAND_ID("commandInfo.uuid", "APP_SYS_COMMAND", Types.CHAR),
    ID("id", "APP_ID", Types.BIGINT),
    NAME("name", "APP_NAME", Types.VARCHAR),
    DESCRIPTION("description", "APP_DESCRIPTION", Types.VARCHAR),
    DEFAULT_LANGUAGE("defaultLanguage.id", "", Types.BIGINT); 
    ;
        
    private String name = null;
    private String column = null;
    private int type = -1;
    
    private ApplicationMemento(String name, String column, int type) {
        this.name = name;
        this.column = column;
        this.type = type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getColumn() {
        return column;
    }

    @Override
    public int getType() {
        return type;
    }
    
}
